package com.dream.keigezhushou.Activity.kege.acty;

import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.dream.keigezhushou.Activity.kege.adapter.MyAttentionListAdapter;
import com.dream.keigezhushou.Activity.kege.view.BoxBlurFilter;
import com.dream.keigezhushou.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 发布
 */

public class ReleaseActivity extends AppCompatActivity {

    @BindView(R.id.tv_left)
    TextView tvLeft;

    @BindView(R.id.tv_right)
    TextView tvRight;

    @BindView(R.id.tv_title)
    TextView tvTitle;

    @BindView(R.id.release_img_linear)
    LinearLayout releaseLinear;





    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_release);
        ButterKnife.bind(this);
        initView();
        initOnClick();
    }

    public void initView() {
        tvTitle.setText("发布");
        Resources r = this.getResources();
        Bitmap bmp = BitmapFactory.decodeResource(r, R.drawable.kge_detail);
        releaseLinear.setBackground(BoxBlurFilter.Filter(bmp));
    }


    public void initOnClick() {

        tvLeft.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });


        tvRight.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent intent=new Intent();
                intent.setClass(ReleaseActivity.this,ReleaseFinishActivity.class);
                startActivity(intent);


            }
        });


    }


}
